<%@ page import="com.wuming.house.security.SecurityHander" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!Doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>安家桐城</title>
    <%@include file="/common/common-ico.jsp" %>
    <link rel="stylesheet" href="${allServerPath}static/layui/layui/css/layui.css">
    <link rel="stylesheet" href="${allServerPath}static/layui/css/demo.css">
    <link rel="stylesheet" href="${allServerPath}static/layui/css/icon.css">
    <link rel="stylesheet" href="${allServerPath}static/layui/build/css/app.css">
    <link rel="stylesheet" href="${allServerPath}static/layui/css/style.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin kit-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">安家桐城</div>
        <!-- 顶部导航 开始 -->
        <ul class="layui-nav layui-layout-right layui-nav-wuli" lay-filter="kitNavbar" kit-navbar>
            <li class="layui-nav-item wuli-nav-item">
                <a class="" href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    <i class="fa fa-plug" aria-hidden="true"></i>
                    <span><%=SecurityHander.getCurrentUserName()%></span>
                    <span>[管理员]</span>
                </a>
                <dl class="layui-nav-child wuli-nav-child">
                    <!--基本信息-->
                    <dd><a href="javascript:;"
                           data-url="${allServerPath}web/member/editUser/<%=SecurityHander.getCurrentUserId()%>.htmls"
                           data-icon="fa-user" data-title="基本信息"
                           kit-target data-id="8-1">
                        <i class="fa fa-user" aria-hidden="true"></i><span> 基本信息</span></a>
                    </dd>
                    <!--修改密码-->
                    <dd><a href="javascript:;"
                           data-url="${allServerPath}web/member/toModifyPassword/<%=SecurityHander.getCurrentUserId()%>.htmls"
                           data-icon="fa-user" data-title="修改密码"
                           kit-target data-id="8-2">
                        <i class="fa fa-user" aria-hidden="true"></i><span> 修改密码</span></a>
                    </dd>
                    <!--切换帐号-->
                    <dd><a href="javascript:logout();"><i class="fa fa-user"

                                                          aria-hidden="true"></i><span> 切换帐号</span></a></dd>
                </dl>
            </li>
        </ul>
        <!-- 顶部导航 结束 -->
    </div>
    <div class="layui-side layui-bg-black  kit-side">
        <div class="layui-side-scroll">
            <div class="kit-side-fold"><i class="layui-icon layui-icon-shrink-right"></i></div>
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="kitNavbar" kit-navbar>
                <!--首页 开始-->
                <li class="layui-nav-item layui-this">
                    <a class="" href="javascript:;">
                        <i class="icon iconfont wuli-icon-sy">&#xe61b;</i>
                        <span>首页</span>
                    </a>
                </li>
                <!--首页 结束-->
                <!--产品管理 开始-->
                <shiro:hasAnyRoles
                        name="super:manage">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">
                            <i class="icon iconfont wuli-icon-xs">&#xe70a;</i>
                            <span>产品管理</span>
                        </a>
                        <dl class="layui-nav-child">
                            <!--商品分类-->
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'goodsCate/toManageGoodsCate.htmls',icon:'',title:'分类管理',id:'1-1'}">
                                    <span>分类管理</span>
                                </a>
                            </dd>
                            <!--分组列表-->
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'goodsGroup/toGoodsGroup.htmls',icon:'',title:'分组管理',id:'1-2'}">
                                    <span>分组管理</span>
                                </a>
                            </dd>
                            <!--新房管理-->
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'house/toManageHouse.htmls',icon:'',title:'新房管理',id:'1-3'}">
                                    <span>新房管理</span>
                                </a>
                            </dd>
                            <!--二手房管理-->
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'secondhouse/toManageSecondHouse.htmls',icon:'',title:'二手房管理',id:'1-4'}">
                                    <span>二手房管理</span>
                                </a>
                            </dd>
                            <!--广告管理-->
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'banner/toManageBanner.htmls',icon:'',title:'广告',id:'1-5'}">
                                    <span>广告管理</span>
                                </a>
                            </dd>
                        </dl>
                    </li>
                </shiro:hasAnyRoles>
                <!--产品管理 结束-->
                <!--工具管理 开始-->
                <shiro:hasAnyRoles
                        name="super:manage">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">
                            <i class="icon iconfont wuli-icon-xs">&#xe70a;</i>
                            <span>配置管理</span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'information/toManageInformation.htmls',icon:'',title:'资讯管理',id:'2-1'}">
                                    <span>资讯管理</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'decorate/toManageDecorate.htmls',icon:'',title:'案例管理',id:'2-2'}">
                                    <span>案例管理</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'activity/toManageActivity.htmls',icon:'',title:'活动管理',id:'2-3'}">
                                    <span>活动管理</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'market/toManageMarket.htmls',icon:'',title:'行情管理',id:'2-4'}">
                                    <span>行情管理</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'houseprice/toManageHouseprice.htmls',icon:'',title:'当月房价管理',id:'2-6'}">
                                    <span>房价管理</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'function/toManageFunction.htmls',icon:'',title:'功能管理',id:'2-7'}">
                                    <span>功能管理</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'aboutus/toAboutus.htmls',icon:'',title:'关于我们',id:'2-8'}">
                                    <span>关于我们</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'tag/toManageTag.htmls',icon:'',title:'标签管理',id:'2-9'}">
                                    <span>标签管理</span>
                                </a>
                            </dd>
                        </dl>
                    </li>
                </shiro:hasAnyRoles>
                <shiro:hasAnyRoles
                        name="super:manage">
                    <!--工具管理 结束-->
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">
                            <i class="icon iconfont wuli-icon-xs">&#xe70a;</i>
                            <span>用户管理</span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'user/toManageUser.htmls',icon:'',title:'微信用户管理',id:'3-1'}">
                                    <span>微信用户管理</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'member/manageMember.htmls',icon:'',title:'注冊用户管理',id:'3-2'}">
                                    <span>注冊用户管理</span>
                                </a>
                            </dd>
                        </dl>
                    </li>
                </shiro:hasAnyRoles>
                <shiro:hasAnyRoles
                        name="secondhouse:manage">
                    <!--工具管理 结束-->
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">
                            <i class="icon iconfont wuli-icon-xs">&#xe70a;</i>
                            <span>二手房管理</span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'secondhouse/toManageSecondHouse.htmls',icon:'',title:'二手房管理',id:'1-4'}">
                                    <span>二手房管理</span>
                                </a>
                            </dd>
                        </dl>
                    </li>
                </shiro:hasAnyRoles>
                <shiro:hasAnyRoles
                        name="decorate:manage">
                    <!--工具管理 结束-->
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">
                            <i class="icon iconfont wuli-icon-xs">&#xe70a;</i>
                            <span>裝修管理</span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" kit-target
                                   data-options="{url:'decorate/toManageDecorate.htmls',icon:'',title:'案例管理',id:'2-2'}">
                                    <span>案例管理</span>
                                </a>
                            </dd>
                        </dl>
                    </li>
                </shiro:hasAnyRoles>
            </ul>
        </div>
    </div>
    <div class="layui-body" id="container"></div>

    <!-- 底部版权 开始 -->
    <div class="layui-footer">
        <p>© 版权声明</p>
    </div>
    <!-- 底部版权 结束 -->

</div>
<script src="${allServerPath}static/layui/layui/layui.js"></script>
<script src="${allServerPath}static/js/common.js"></script>
<script src="${allServerPath}static/js/jquery-2.1.4.min.js" charset="utf-8"></script>
<script src="${allServerPath}static/js/main/main.js"></script>
</body>
</html>